<template>
  <div>
    首页
    <ul>
      <li v-for="item of deptList">{{item.deptName}}</li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: 'index',
    data: function () {
      return {
        deptList: []
      }
    },
    mounted() {
      this.getDeptLIst();
    },
    methods: {
      getDeptLIst: function () {
        this.Http.get('http://192.168.140.241:8090/api/v1/tbs/getDeptList').then(res => {
          this.deptList = res.data
        })
      }
    }
  }
</script>

<style scoped>
</style>
